<?php
include '../dbconnect.php';

?>
<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <!-- <meta name="description" content=""> -->
    <!-- <meta name="author" content=""> -->
    <!-- <link rel="icon" href="../../favicon.ico"> -->

    <title>add goods</title>

    <!-- Bootstrap core CSS -->
    <link href="./css/bootstrap.min.css" rel="stylesheet">

    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <!-- <link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet"> -->

    <!-- Custom styles for this template -->
    <link href="./css/navbar-fixed-top.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don t actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <!-- <script src="../../assets/js/ie-emulation-modes-warning.js"></script> -->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    
    <!-- Fixed navbar -->
    <?php include 'adminHeader.php'; ?>

    <div class="container">
      <br><br>
      <br><br><br>
      <table class="table">
        <thead>
          <tr>
            <th colspan="2" style="background-color: #333333; color: #ffffff; font-size: 18px; text-align: center; padding: 10px;">add product</th>
          </tr>
        </thead>
        <tbody>
          <form action="doaddgoods.php" method="post" enctype="multipart/form-data">
            <tr>
              <td style="background-color: #f1f1f1; padding: 10px; text-align: right;">goods_name：</td>
              <td style="background-color: #ffffff; padding: 10px;">
                <input type="text" class="form-control" id="goodsname" name="goodsname" required>
              </td>
            </tr>
            <tr>
              <td style="background-color: #f1f1f1; padding: 10px; text-align: right;">type：</td>
              <td style="background-color: #ffffff; padding: 10px;">
                <input type="text" class="form-control" id="type" name="type" required>
              </td>
            </tr>
            <tr>
              <td style="background-color: #f1f1f1; padding: 10px; text-align: right;">old_price：</td>
              <td style="background-color: #ffffff; padding: 10px;">
                <input type="text" class="form-control" id="oldprice" name="oldprice" required>
              </td>
            </tr>
            <tr>
              <td style="background-color: #f1f1f1; padding: 10px; text-align: right;">price：</td>
              <td style="background-color: #ffffff; padding: 10px;">
                <input type="text" class="form-control" id="price" name="price" required>
              </td>
            </tr>
            <tr>
              <td style="background-color: #f1f1f1; padding: 10px; text-align: right;">desc：</td>
              <td style="background-color: #ffffff; padding: 10px;">
                <input type="text" class="form-control" id="desc" name="desc" required>
              </td>
            </tr>
            <tr>
              <td style="background-color: #f1f1f1; padding: 10px; text-align: right;">picture：</td>
              <td style="background-color: #ffffff; padding: 10px;">
                <input type="file" class="form-control-file" id="picture" name="picture" required>
              </td>
            </tr>
            <tr>
              <td colspan="2" style="text-align: center; padding: 10px;">
                <button type="submit" class="btn btn-primary" style="font-size: 16px; padding: 10px 20px; border-radius: 5px; background-color: #007bff; border-color: #007bff;">
                  add product
                </button>
              </td>
            </tr>
          </form>
        </tbody>
      </table>
    </div> <!-- /container -->

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="./js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <!-- <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script> -->
  </body>
</html>
